cmake_minimum_required(VERSION 3.25)
project(openmptest)
find_package(OpenMP)

set(CMAKE_CXX_STANDARD 17)

add_executable(openmptest main.cpp)
if(OpenMP_CXX_FOUND)
    target_link_libraries(openmptest PUBLIC OpenMP::OpenMP_CXX)
endif()